package com.example.httpmessageconvert.httpmessageconvert.interceptor;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

/**
 * @author 奶茶
 * Created by on 2018/7/19.
 */
@Aspect
@Component
public class AfterReturningInterceptor {

    @AfterReturning(pointcut="execution(* com.example.httpmessageconvert.httpmessageconvert.controller.*.*(..))", returning="returnValue")
    public void afterReturning(JoinPoint point,Object returnValue){
        System.out.println(returnValue);
    }
}
